using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TopographicProductionTools._Workflow._Properties
{
    /// <summary>
    /// <para>Set Data Workspace</para>
    /// <para>Sets the data workspace for the chosen job to the appropriate database based on the production type of the job.</para>
    /// <para>根据作业的生产类型将所选作业的数据工作空间设置为相应的数据库。</para>
    /// </summary>    
    [DisplayName("Set Data Workspace")]
    public class SetDataWorkspace : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SetDataWorkspace()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_job_id">
        /// <para>Job ID</para>
        /// <para>The job ID of the Workflow Manager (Classic) job that will be updated.</para>
        /// <para>将更新的 Workflow Manager （Classic） 作业的作业 ID。</para>
        /// </param>
        public SetDataWorkspace(long? _job_id)
        {
            this._job_id = _job_id;
        }
        public override string ToolboxName => "Topographic Production Tools";

        public override string ToolName => "Set Data Workspace";

        public override string CallName => "topographic.SetDataWorkspace";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_job_id, _database_path, _updated_job_id];

        /// <summary>
        /// <para>Job ID</para>
        /// <para>The job ID of the Workflow Manager (Classic) job that will be updated.</para>
        /// <para>将更新的 Workflow Manager （Classic） 作业的作业 ID。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Job ID")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public long? _job_id { get; set; }


        /// <summary>
        /// <para>Input Database Path</para>
        /// <para>The Workflow Manager (Classic) database connection file (.jtc) that contains the job information. If no connection file is specified, the current default Workflow Manager (Classic) database will be used.</para>
        /// <para>包含作业信息的 Workflow Manager （Classic） 数据库连接文件 （.jtc）。如果未指定连接文件，则将使用当前默认的 Workflow Manager （Classic） 数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Database Path")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _database_path { get; set; } = null;


        /// <summary>
        /// <para>Updated Job ID</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Job ID")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public long _updated_job_id { get; set; }


        public SetDataWorkspace SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}